import java.util.*;
public class piont
{
	public static void main (String[] args)
	{
		Random in = new Random();
		Scanner out = new Scanner(System.in);
		int a = in.nextInt(20)+ 1 ;
		int b = in.nextInt(20)+1 ;
		int c = in.nextInt(20)+1 ;
		int d = in.nextInt(20)+1 ;
		System.out.println (a+"/"+b+"+"+c+"/"+d+"="+"?");
		int m = b*d;
		int f = a*d;
		int g = b*c;
		int n = f + g;
		String wb = new String(n+"/"+m);
		System.out.println(wb);
		System.out.println(wb.length());
                String wc = out.nextLine();
		System.out.println(wc);
	        System.out.println(	wc == wb);
                System.out.println(wc.length());
                int left = 0;
                int right = wc.length()-1;
               while (wb.charAt(left) == wc.charAt(left) && left < right)
	       {
		       left++;
	       }
	       if (left == right)
		       System.out.println ("true");
	}
}
